package com.jial08.designpatterns.prototype.deep.clone;

/**
 * <p>类描述：clone 实现对象复制。</p>
 *
 * @author jl
 * @version v1.0.0.1。
 * @since JDK1.8。
 * <p>创建日期：2019/10/26 下午6:08。</p>
 */
public class Address1 implements Cloneable {
	private String add;

	public String getAdd() {
		return add;
	}

	public void setAdd(String add) {
		this.add = add;
	}

	@Override
	protected Address1 clone() throws CloneNotSupportedException {
		Address1 address1 = null;
		try {
			address1 = (Address1) super.clone();
		} catch (CloneNotSupportedException e) {
			e.printStackTrace();
		}
		return address1;
	}
}
